<div class="clear"></div>
<table cellpadding="0" cellspacing="0">
    <thead>
        <tr>
            <th>
                Nome
            </th>
            <th>
                Editar
            </th>
            <th>
                Deletar
            </th>
        </tr>
    </thead>
    <tbody>
        <?php
        $i = 0;
        foreach ($result as $publicacao):
            $i++
            ?>
            <tr <?php echo ($i % 2 == 0) ? 'class="gray"' : "" ?>>
                <td><?php echo $publicacao['Categoria']['name'] ?></td>
                <td><a a href="?c=Categoria&a=edit&p=<?php echo $publicacao['Categoria']['id'] ?>">Editar</a></td>
                <td><a a href="?c=Categoria&a=delete&p=<?php echo $publicacao['Categoria']['id'] ?>">Deletar</a></td>
            </tr>
            <?php
        endforeach;
        ?>
    </tbody>
</table>